using Avalonia.Controls;
using Avalonia.Interactivity;

namespace IntegratedMeasuring.Pages;

public partial class ConfirmDialog : Window
{
    public ConfirmDialog(string message)
    {
        InitializeComponent();
        
        MessageText.Text = message;
    }

    private void OkButton_Click(object? sender, RoutedEventArgs e)
    {
        this.Close(true);
    }

    private void CancelButton_Click(object? sender, RoutedEventArgs e)
    {
        this.Close(false);
    }
} 